package com.xinghou.platform.server.api.service.impl;

import java.io.IOException;
import java.util.List;

import org.springframework.stereotype.Service;

import com.xinghou.platform.lucene.main.SharedCardLuceneService;
import com.xinghou.platform.model.main.SharedCard;
import com.xinghou.platform.server.api.service.SharedCardLuceneApiService;

import javax.annotation.Resource;

@Service("sharedCardApiService")
public class SharedCardLuceneApiServiceImpl extends BaseDAOProtery<SharedCardLuceneService> implements SharedCardLuceneApiService {

	//private String daoUrl = httpServicesDaourl + "dao/main/sharedCardLucene";
	@Resource
	private SharedCardLuceneService sharedCardLuceneService ;
	@Override
	public List<SharedCard> getSearchSharedCards(String key, int fromno,
			int pagesize) throws IOException {
		// TODO Auto-generated method stub
		return sharedCardLuceneService.getSearchSharedCards(key, fromno, pagesize);
	}
	@Override
	public int saveSharedCard(SharedCard sharedCard) {
		// TODO Auto-generated method stub
		return sharedCardLuceneService.saveSharedCard(sharedCard);
	}
	@Override
	public int updateSharedCard(SharedCard sharedCard) {
		// TODO Auto-generated method stub
		return sharedCardLuceneService.updateSharedCard(sharedCard);
	}

	
	

}
